/**
 * 
 */
package ar.com.drconta.ganancias.editors.example.modelVO;

import java.util.ArrayList;
import java.util.List;

/**
 * Category of the items.
 * @author E420611
 *
 */
public class Category {
	
	private PersonFolder parent; 	
	private String name;
	
	private List<Item> rows = new ArrayList<Item>();

	/**
	 * Constructor.
	 * @param name
	 */
	public Category(String name) {
		this.setName(name);
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the rows
	 */
	public List<Item> getRows() {
		return rows;
	}

	/**
	 * @param rows the rows to set
	 */
	public void setRows(List<Item> rows) {
		this.rows = rows;
	}

	/**
	 * @return the parent
	 */
	public PersonFolder getParent() {
		return parent;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(PersonFolder parent) {
		this.parent = parent;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return name;
	}

}
